package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.PageResult;
import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;

public interface StudentService extends IService<Student> {
    /**
     * 分页条件查询
     * @param student
     * @return
     */
    PageResult<Student> findPage(StudentQueryParam student);

    /**
     * 新增学生
     * @param student
     */
    void saveStudent(Student student);

    /**
     * 修改学生
     * @param student
     */
    void updateStuById(Student student);

    /**
     * 违纪处理
     * @param id
     * @param score
     */
    void violation(Integer id, Integer score);
}
